<html>
<head>
<script src="../../../jsonrpc_client.js" type="text/javascript"></script>
<script src="../../../introducer-compat.js" type="text/javascript"></script>
<script type="text/javascript">
  function run() {
    initIntroducer(document.getElementById("introducer-frame").contentWindow);
  }
  
  function register() {
      introducer.register(null,
          { id: "MessageTestProvider",
            name: "Message Receiver",
            icon: "http://webintroducer.googlecode.com/hg/demos/basic/provider/icon.jpg",
            home: "http://www.example.com",
            providers:
              [{id: "MessageInline",
                URI: "http://webintroducer.googlecode.com/hg/demos/basic/provider/displaymessage.html",
                name: "Message Inline",
                supports: ["application/message"]},
                {id: "MessagePopup",
                 URI: "http://webintroducer.googlecode.com/hg/demos/basic/provider/displaymessage.html",
                 name: "Message Popup",
                 supports: ["application/message"], popup: {}}]});
      
      return false;
  }
</script>
  </head>
  <body onload="run()">
    <iframe width="0" height="0" src="../../../introducer-handler.html" id="introducer-frame"></iframe>
    <a href="#" onclick="register()">Register</a>
  </body>
</html>